package com.zhongke.cotrun.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

@Data
@ApiModel(value = "用户账户信息表")
public class UserAllIntegral {
//用户的账户
@ApiModelProperty(value = "用户账户id", example = "123")
    private Long allIntegralId;   //用户账户id
    @ApiModelProperty(value = "用户账户数值", example = "123")
    private BigDecimal allValue;     //数值
    @ApiModelProperty(value = "关联账户id", example = "123")
    private Integer userId;     //关联用户id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "跟新时间", example = "2020-2-3")
    private Date updateTime; //跟新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", example = "2020-2-3")
    private Date createTime;     //创建时间
    @ApiModelProperty(value = "用户账户状态0正常1禁用", example = "0")
    private Integer state;//账户状态 0正常1禁用

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "过期时间", example = "2020-2-3")
    private Date expirationTime;//过期时间

}
